ErrorHandler

Class Used for handling errors

Members

Static functions

assertErrorMessage
bool assertErrorMessage(bool expression, string errorTitle, string errorMessage, bool isFatal, string file, size_t line, string mod, string func)
assertExit
void assertExit(bool expression, string onAssertionFailure, string file, size_t line, string mod, string func)

If you're running on a loop or need to concat your failure message, prefer using assertLazyExit.

assertLazyErrorMessage
bool assertLazyErrorMessage(bool expression, string errorTitle, string errorMessage, bool isFatal, string file, size_t line, string mod, string func)
assertLazyExit
void assertLazyExit(bool expression, string onAssertionFailure, string file, size_t line, string mod, string func)
Undocumented in source. Be warned that the author may not have intended to support it.
assertReturn
immutable(string) assertReturn(string onAssertionFailureMessage)
Undocumented in source. Be warned that the author may not have intended to support it.
showErrorMessage
void showErrorMessage(string errorTitle, string errorMessage, bool isFatal)

This function adds to the error stack

showEveryError
void showEveryError()
Undocumented in source. Be warned that the author may not have intended to support it.
showWarningMessage
void showWarningMessage(string warningTitle, string warningMessage)
Undocumented in source. Be warned that the author may not have intended to support it.
startListeningForErrors
void startListeningForErrors(string stackName)

This function will look wether any error has happenned stackName = This will help identify where the error ocurred

stopListeningForErrors
bool stopListeningForErrors()

Will stop listening and

Static variables

LAST_ERROR
string LAST_ERROR;
Undocumented in source.

Meta